<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        *{
            padding:0;
            margin:0;
            list-style: none;
        }
        #box{
            width:400px;
            height:200px;
            border:5px solid red;
            margin:50px auto;
            position:relative;
            overflow: hidden;
        }
        #box ul{
            height:200px;
            width:100000px;
            position:absolute;
            top:0px;
            left:0px;
            border:1px solid blue;
            overflow: hidden;
        }
        #box ul li{
            width:400px;
            height:200px;
            float:left;

        }
        #box ul li:nth-of-type(1){
            background: red;
        }
        #box ul li:nth-of-type(2){
            background: cornflowerblue;
        }
        #box ul li:nth-of-type(3){
            background: chocolate;
        }
        #box ul li:nth-of-type(4){
            background: chartreuse;
        }
        #box ul li:nth-of-type(5){
            background: red;
        }
    </style>
    <script src="../jquery-1.7.2.min.js"></script>
    <script>
        $(function(){

            var timer = setInterval(run,1000);
            var i=0;
            function run(){
				i++;
                $('#box ul').animate({left:-400*i},300);
            }

        })
    </script>
</head>
<body>
    <div id="box">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>1</li>
        </ul>
    </div>
</body>

















</html>